import request from '@/utils/request'

// 获取会员等级列表
export const getMemberLevelList = (data) => {
  return request({
    url: '/memberLevel/list',
    method: 'get',
    params:data
  })
}

// 保存会员等级
export const addMemberLevel = (data) => {
  return request({
    url: '/memberLevel/edit',
    method: 'post',
    data: data
  })
}

// 删除会员等级
export const deleteMemberLevel = (id) => {
  return request({
    url: '/memberLevel/'+id,
    method: 'delete'
  })
}

// 修改会员等级
export const editMemberLevel = (data) => {
  return request({
    url: '/memberLevel/edit',
    method: 'put',
    data: data
  })
}

// 获取会员等级详情
export const getMemberLevelDetail = (id) => {
  return request({
    url: '/memberLevel/'+id,
    method: 'get'
  })
}

// 获取会员等级列表字典
export const getMemberLevelColumnList = () => {
  return request({
    url: '/memberLevel/columnList',
    method: 'get'
  })
}